package ooday02;

/**
 * 测试类
 */
public class Test {
    public static void main(String[] args) {
        Student zs = new Student("zhangsan",25,"LF","jsd2303","001");
        zs.eat();
        zs.sleep();
        zs.sayHi(); //调用Student类的sayHi()
        zs.study();

        Teacher ls = new Teacher("lisi",24,"JMS",6000.0);
        ls.eat();
        ls.sleep();
        ls.sayHi(); //调用Teacher类的sayHi()
        ls.teach();

        Doctor ww = new Doctor("wangwu",26,"SD","主治医师");
        ww.eat();
        ww.sleep();
        ww.sayHi(); //调用Person类的sayHi()
        ww.cut();
    }
}




















